package com.san.common.auth.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.san.common.auth.entity.SysUser;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.Optional;

@Component
public interface UserDao extends BaseMapper<SysUser> {

    Optional<SysUser> selectByEmail(@Param("email") String email);

    Optional<SysUser> selectByUsername(@Param("username") String username);
}
